/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "UI/intern/ui文本编辑.h"
#include "UI/intern/ui容器部件.h"

class C_弹出面板 : public C_Widget {

public:
	C_弹出面板(S_UI渲染环境& ctx);
	~C_弹出面板();

	E_方向 m_方向;
	C_行编辑框* m_lineBox;
	std::vector<std::vector<S_列表填充数据>>	m_项数据;
	uint16 m_OffsetID;


	fp_列表项选中回调		mf_项选中回调;
	S_Props					m_Value;
};



class C_超级弹出菜单 : public C_Widget {

public:
	C_超级弹出菜单(S_UI渲染环境& ctx);
	~C_超级弹出菜单();

	E_方向      m_方向;
	C_行编辑框* m_搜索编辑框;
	C_滚动框*   m_滚动框;

	C_弹出面板* m_弹出面板;

	std::vector<std::vector<S_列表填充数据>>	m_项数据;
	uint16 m_OffsetID;

	ui_绘制模板_预设图形	m_背景绘制;
	//ui_绘制模板_行文本绘制	m_字符绘制;
	ui_绘制模板_图标		m_图标绘制;

	fp_列表项选中回调		mf_项选中回调;
};





class C_加载保存信息框 : public C_Widget {

public:
	C_加载保存信息框(S_UI渲染环境& ctx);

	std::vector<std::u16string> m_信息字符;
	uint32						m_最多行数;

	void f_填充信息(const std::u16string& info);
	void f_打开();
	void f_关闭();

};




